package com.inspur.gs.fssp.fssc.robxd.robxd.back.bizactions;
import com.inspur.edp.bef.api.lcp.IStandardLcp;
import com.inspur.edp.bef.api.lcp.LcpFactoryManagerUtils;
import com.inspur.edp.cef.api.message.*;
import com.inspur.edp.bef.api.action.determination.*;
import com.inspur.edp.bef.api.action.validation.*;
import com.inspur.edp.cef.entity.changeset.*;
import com.inspur.edp.bef.api.be.*;
import com.inspur.edp.bef.api.action.VoidActionResult;
import com.inspur.edp.bef.spi.action.AbstractManagerAction;

public class ROBXDAduitBillMgrAction extends AbstractManagerAction<Boolean> {
	private String id;
	private String flag;
	public ROBXDAduitBillMgrAction(IBEManagerContext managerContext, String id, String flag) {
		super(managerContext);
		this.id = id;
		this.flag = flag;
	}
	@Override
	public  void execute() {
		IBusinessEntity entity=getEntity(id);
		entity.retrieve();
		//参数为BE实体动作的编号
		entity.executeBizAction("Aduit",flag);
		//参数为be的configid,在业务实体的配置tab页可查看
		IStandardLcp lcp = LcpFactoryManagerUtils.createLcp("com.inspur.gs.fssp.fssc.robxd.robxd.back.ROBXD");
		lcp.save();
	}
	private IBusinessEntity getEntity(String dataId) {
		return (IBusinessEntity)super.getBEManagerContext().getEntity(dataId);
	}	private IBEService getMgr() {
		return (IBEService)super.getBEManagerContext().getBEManager();
	}
}